package com.xh.bussiness.system.dao;

import com.xh.bussiness.system.model.Dictionary;

import java.util.List;
import java.util.Map;

import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 数据字典表 Mapper 接口
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
public interface DictionaryMapper extends BaseMapper<Dictionary> {

	List<Dictionary> queryChilds(@Param("parentType") String parentType, @Param("parentCode") String parentCode,
			@Param("childType") String childType);


	Dictionary queryGradeRangeBySubjectCode(@Param("subjectCode") String subjectCode);

	Integer selectMaxOrderNoByTypeCode(@Param("typeCode") String typeCode);

	XhPage<Map<String,Object>> querySubjectPage(XhPage page, @Param("subjectName") String subjectName, @Param("gradeRangeCode") String gradeRangeCode);

	String maxDictMaxVal(@Param("typeCode") String typeCode);
}
